import request from '@/utils/request'

let api = {};

api.doLogin = (data)=>{
    return request({
        url:"/api/member/login/doLogin",
        data,
        method:"post"
    });
}

api.getUserInfo = ()=>{
    return request({
        method:"post",
        url:"/api/member/login/getInfo"
    });
}

api.getUserRouter = ()=>{
    return request({
        method:"post",
        url:"/api/member/login/treeRouter"
    });
}

api.doReg = (param)=>{
    return request({
        url:"/api/member/login/doReg",
        data:param,
        method:"post"
    });
}

export default api;